/**
 * 记录相关
 *
 */
import request from '@/utils/request'

/**
 * @method name...
 * @description 获取点餐记录统计
 */
export function getOrderCount(data) {
  return request({
    url: '/wcanyin_admin/manage/orderCount',
    method: 'post',
    data: data
  })
}

// 获取记录列表
export function getOrderRecord(data) {
  return request({
    url: '/wcanyin_admin/manage/queryOrders',
    method: 'post',
    data: data
  })
}

// 获取商品快照
export function getSnapshot(data) {
  return request({
    url: '/wcanyin_admin/manage/getSnapshot?orderId=' + data.orderId,
    method: 'post',
    data: {}
  })
}

// 获取记录详情
export function getOrderDetail(params) {
  return request({
    url: '/wcanyin_admin/manage/queryOrder',
    method: 'get',
    params: params
  })
}

// 更改订单状态
export function changeOrderStatus(data) {
  return request({
    url: '/booking_admin/booking_manage/change_order_status',
    method: 'post',
    data: data
  })
}

// 修改订单备注
export function modifyOrderRemark(data) {
  return request({
    url: '/booking_admin/booking_manage/modify_order_remark',
    method: 'post',
    data: data
  })
}

// 退款
export function refundOrder(data) {
  return request({
    url: '/wcanyin_admin/manage/refundOrder',
    method: 'post',
    data: data
  })
}

// 打印小票
export function printOrderTicket(params) {
  return request({
    url: '/wcanyin_admin/manage/printOrder',
    method: 'post',
    params: params
  })
}

